package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

//动态表
@TableName(value="dynamic")
public class Dynamic {
    @TableId(value = "did",type = IdType.AUTO)
    private Integer did;

    private Integer userId;//用户id

    private String dcontent;//动态内容

    private String userName;//用户名称

    private Integer dIsopen;//是否打开  0：打开 1：关闭

    private Date dBeginTime;//动态时间

    private String adminName;//发送者

    private Integer exit1;//备用字段1

    private String exit2;//备用字段2

    public Dynamic() {
        super();
    }

    @Override
    public String toString() {
        return "Dynamic{" +
                "did=" + did +
                ", userId=" + userId +
                ", dcontent='" + dcontent + '\'' +
                ", userName='" + userName + '\'' +
                ", dIsopen=" + dIsopen +
                ", dBeginTime=" + dBeginTime +
                ", adminName='" + adminName + '\'' +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDcontent() {
        return dcontent;
    }

    public void setDcontent(String dcontent) {
        this.dcontent = dcontent;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getdIsopen() {
        return dIsopen;
    }

    public void setdIsopen(Integer dIsopen) {
        this.dIsopen = dIsopen;
    }

    public Date getdBeginTime() {
        return dBeginTime;
    }

    public void setdBeginTime(Date dBeginTime) {
        this.dBeginTime = dBeginTime;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public Dynamic(Integer did, Integer userId, String dcontent, String userName, Integer dIsopen, Date dBeginTime, String adminName, Integer exit1, String exit2) {
        this.did = did;
        this.userId = userId;
        this.dcontent = dcontent;
        this.userName = userName;
        this.dIsopen = dIsopen;
        this.dBeginTime = dBeginTime;
        this.adminName = adminName;
        this.exit1 = exit1;
        this.exit2 = exit2;
    }
}
